package com.example;

public class Schedule {
    private int id;
    private String studentUsername;
    private String courseName;
    private String dayOfWeek;
    private String startTime;
    private String endTime;
    private String location;
    private String teacherName;
    private String semester;

    public Schedule(int id, String studentUsername, String courseName, String dayOfWeek, String startTime, String endTime, String location, String teacherName, String semester) {
        this.id = id;
        this.studentUsername = studentUsername;
        this.courseName = courseName;
        this.dayOfWeek = dayOfWeek;
        this.startTime = startTime;
        this.endTime = endTime;
        this.location = location;
        this.teacherName = teacherName;
        this.semester = semester;
    }

    // Getters
    public int getId() { return id; }
    public String getStudentUsername() { return studentUsername; }
    public String getCourseName() { return courseName; }
    public String getDayOfWeek() { return dayOfWeek; }
    public String getStartTime() { return startTime; }
    public String getEndTime() { return endTime; }
    public String getLocation() { return location; }
    public String getTeacherName() { return teacherName; }
    public String getSemester() { return semester; }

    // Setters (optional, depending on needs)
    public void setId(int id) { this.id = id; }
    public void setStudentUsername(String studentUsername) { this.studentUsername = studentUsername; }
    public void setCourseName(String courseName) { this.courseName = courseName; }
    public void setDayOfWeek(String dayOfWeek) { this.dayOfWeek = dayOfWeek; }
    public void setStartTime(String startTime) { this.startTime = startTime; }
    public void setEndTime(String endTime) { this.endTime = endTime; }
    public void setLocation(String location) { this.location = location; }
    public void setTeacherName(String teacherName) { this.teacherName = teacherName; }
    public void setSemester(String semester) { this.semester = semester; }

    @Override
    public String toString() {
        return "Schedule{" +
               "id=" + id +
               ", studentUsername='" + studentUsername + '\'' +
               ", courseName='" + courseName + '\'' +
               ", dayOfWeek='" + dayOfWeek + '\'' +
               ", startTime='" + startTime + '\'' +
               ", endTime='" + endTime + '\'' +
               ", location='" + location + '\'' +
               ", teacherName='" + teacherName + '\'' +
               ", semester='" + semester + '\'' +
               '}';
    }
} 